import React, { Component } from 'react';
import Footer from './Footer.jsx';
import styles from './css/main.module.css';
import Routers from '../routers/Routers.jsx';
import {SORT_BASE_SET} from '../reducers/global.js';
import { connect } from 'react-redux'
// export default class Main extends Component {
class Main extends Component {
    render() {
        return (
            <div>
                <div className={styles.main}>
                    Main
                    <Routers></Routers>
                </div>
                <Footer></Footer>
            </div>
        )
    }
}


export default connect(
    (state) => ({
        loading:state[SORT_BASE_SET.name].loading
    }),
    () => ({}),
    ()=>({}),{
        pure:false
    }
)(Main);
